{extend name="main"}
{block name="content"}
<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card padding-bottom-10">
    <div class="layui-card-body padding-left-40">
        <div class="layui-form-item margin-bottom-5">
            <div class="help-label"><b>图片</b></div>
            <div class="layui-textarea help-images">
                <input type="hidden" value='{:sysconf("site.banner|raw")}' name="banner">
            </div>
            <script>$('[name=banner]').uploadMultipleImage();</script>
        </div>

        <div class="layui-form-item layui-form-text">
            <div class="help-label"><b>注册协议</b></div>
            <label class="relative block">
                <textarea name="register_agreement" required class="layui-textarea">{:sysconf("site.register_agreement|raw")}</textarea>
            </label>
            <div class="help-block"></div>
            <script>
                require(['ckeditor', 'angular'], function () {
                    window.createEditor('[name="register_agreement"]', {height: 500});
                })
            </script>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        <button class="layui-btn" type="submit">保存配置</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗？" data-close>取消修改</button>
    </div>
</form>
{/block}}